// import QtQuick 1.0 // to target S60 5th Edition or Maemo 5
import QtQuick 1.1
import com.nokia.symbian 1.1
import com.nokia.extras 1.1
import "../Script.js" as Script

Page{
    id: page
    property string title : "France"
    property string imageDefURL

    onVisibleChanged: {
        Script.loadImage(imageDefault,imageTrafic, page);
    }


    tools: ToolBarLayout {
            id: toolBarLayout
            ToolButton {
                   iconSource: "toolbar-back"
                   onClicked: {
                       pageStack.pop();
                   }
               }
        }

    Image{
        id: imageDefault
        fillMode: Image.PreserveAspectFit
        anchors.fill: parent

        source: imageDefURL
        asynchronous: true
        cache: false
        clip: true
        smooth: true
        onSourceChanged: {
            console.debug("Source Changed " + source)
        }
        onProgressChanged: console.debug("Progress " + progress)
    }

    Image {
        id: imageTrafic
        fillMode: Image.PreserveAspectFit
        anchors.fill: parent

//        source: "http://moloetkolo.m.o.pic.centerblog.net/8trwsckf.jpg"

    }
}
